home *** CD-ROM | disk | FTP | other *** search
/ Floppyshop 2 / Floppyshop - 2.zip / Floppyshop - 2.iso / diskmags / 0022-3.564 / dmg-3419 / trimod.2_1 / trimod.s next >
Text File  |  1991-04-25  |  825b  |  32 lines

  1. ****************************************************
  2. * Example Program for the use of TriMod v2.1 Music *
  3. *       Coded by Eagle of Sentry on 20.4.1992      *
  4. * If you use fast mode at initial, you may NOT use *
  5. *       the diskdrive! (But it is REAL FAST)       *
  6. ****************************************************
  7.  
  8.     pea    0.w            Super Mode
  9.     move.w    #32,-(sp)
  10.     trap    #1
  11.     addq.w    #6,sp
  12.  
  13.     moveq    #0,d0    ; Use 0 for normal mode or 1 for Fast mode
  14.     bsr    music            Music Init.
  15.     move.l    #music+6,$4d2.w        Play Music
  16.  
  17.     move.w    #7,-(sp)        Wait for a key
  18.     trap    #1
  19.     addq.w    #2,sp
  20.  
  21.     bsr    music+2            Exit Music
  22.     clr.l    $4d2.w            Stop VBL
  23.  
  24.     move.l    #$80000,$ffff8800.w    Volume A off
  25.     move.l    #$90000,$ffff8800.w    Volume B off
  26.     move.l    #$a0000,$ffff8800.w    Volume C off
  27.  
  28.     pea    0.w            Exit to assembler
  29.     trap    #1
  30.  
  31. music    incbin    tri.mus
  32.